<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType = "text/html; charset=UTF-8" pageEncoding="utf-8" %>
<%@ include file="/common/init.jsp"%>
<html>
<head>
<title>澳斯浪廷会员平台</title>
<link href="<c:url value='/resources/css/css.css'/>" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<c:url value='/resources/js/jquery-1.7.2.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/resources/js/validate.js'/>"></script>
<script type="text/javascript" src="<c:url value='/resources/js/mask.js'/>"></script>
<script type="text/javascript">
function confirep(){
	//document.forms[0].action = "${ctx}/eped.action";
    //document.forms[0].submit();
	$(document).mask("系统处理中，请稍后......");
    //window.location.href= "${ctx}/epconfirm.action?id="+id;
    var data = $("#epconfirmFrom").serialize();
	jQuery.ajax({
		url: "${ctx}/doep.action",
		type: "post",
		dataType:"html",
		data:data,
		async:false,
		success: function(jsondata){
			alert(jsondata);
			window.location.href = "${ctx}/ep.action";
		},
		error: function(XMLHttpRequest, textStatus, errorThrown) {
	    }
	});
}
</script>
</head>
<body>
<div class="main">
<div class="width_l">
    <iframe src="menu.action" frameborder="0" width="250" height="100%" class="menu"></iframe>
</div>    
    <div class="right">
    <div class="width_r">
        <div class="menu_r">
            <ul>
                <li><a href="index.action">首页</a></li>
                <li><a href="information.action">消息</a></li>
                <li><a href="notice.action">公告中心</a></li>
                <li><a href="news.action">新闻中心</a></li>
                <li><a href="inbox.action">收件箱</a></li>
                <li><a href="tomail.action">写邮件</a></li>
                <li><a href="sent.action">已发送</a></li>
                <li><a href="exit.action">安全退出</a></li> 
            </ul>
        </div>
        <div class="ep_top"><img src="<c:url value='/resources/images/top.jpg'/>" /></div>
        <div class="news">
            <div class="ep_title">
              <div class="epjiaoyi">EP交易</div>
                <div class="epmore"></div>
            </div>
            <div class="mairu">买入</div>
            <div class="bank">
			 <table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
			  <tr>
			    <td width="75" align="right">会员ID：</td>
			    <td width="225">
			    	${saleUser.userAccount}
			    </td>
			  </tr>
			  <tr>
			    <td align="right">信用星：</td>
			    <td>
			    <c:choose>
			    	<c:when test="${fn:length(saleUser.creditLevel) >0}">
				    	<c:forEach begin="1" end="${saleUser.creditLevel}">
							<img src="<c:url value='/resources/images/zuanshi.png'/>"/>                     
					    </c:forEach>
			    	</c:when>
			    	<c:otherwise>
			    	</c:otherwise>
			    </c:choose>
			    </td>
			  </tr>
			  <tr>
			    <td align="right">姓名：</td>
			    <td>${userBank.bankUser}</td>
			  </tr>
			  <tr>
			    <td align="right">银行卡号：</td>
			    <td>
			   	${userBank.bankCard}
			    </td>
			  </tr>
			  <tr>
			    <td align="right">开户行：</td>
			    <td>${userBank.bankName }</td>
			  </tr>
			  <tr>
			    <td align="right">分支行：</td>
			    <td>${userBank.subBranch }</td>
			  </tr>
			  <tr>
			    <td align="right">金额：</td>
			    <td>
				    <c:if test="${ep.chargeFee eq postFee}"><!-- 调整后 -->
	    				￥${ep.dealAmount-ep.postFee}
	    			</c:if>
	    			<c:if test="${ep.chargeFee ne postFee}">
	    				￥${ep.dealAmount}
	    			</c:if>
			    </td>
			  </tr>
			  </table>
          </div>
          <div align="center">
	          <span >请点击【确认】按钮，确认本次交易，否则将视为您放弃本次交易，并扣除您的信用度</span><br/>
	          <span>特别提醒：请在六个小时已内将对应金额汇入该账号，否则将扣除买家信用度</span>
		  </div>
			
      <%-- <div class="mr_nr">
                <ul>
                    <li>会员ID：${saleUser.userAccount}</li>
                    <li>信用星：
                    <c:forEach begin="1" end="${saleUser.creditLevel}">
                    	<img src="<c:url value='/resources/images/zuanshi.png'/>"/>                     
                    </c:forEach>
                    </li>
                    <li>姓名：${userBank.bankUser }</li>
                    <li>银行卡号：${userBank.bankCard }</li>
                    <li>开户行：${userBank.bankName }</li>
                    <li>分支行：${userBank.subBranch }</li>
                    <li>金额：${ep.dealAmount }</li>
                    <li>请点击【确认】按钮，确认本次交易，否则将扣除您的信用度</li>
                    <li>特别提醒：请在六个小时已内将对应金额汇入该账号，否则将扣除买家信用度</li>
                </ul>
          </div> --%>
          <form method="post" id="epconfirmFrom">
          	<input type="hidden" name="id" value="${ep.id }"/>
          </form>
            <div class="queren"><img src="<c:url value='/resources/images/queren.jpg'/>" onclick="confirep();"/></div>
        </div>
        <div class="news_down"><img src="<c:url value='/resources/images/down.jpg'/>" /></div>
    </div>
    </div>
</div>

</body>
</html>
